package com.vturkey.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.vturkey.dao.UserDao;
import com.vturkey.model.User;

@Component("userBean")
public class UserBean {
	
	@Autowired
	private UserDao userDao;
	
	public void saveUser(User user){ 
		userDao.save(user);
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
}
